/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simplemetrosystem.view.menu;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JMenuItem;
import simplemetrosystem.model.charlanguage.NameMap;
import simplemetrosystem.view.action.AboutActionListener;
import simplemetrosystem.view.MetroFrame;

/**
 *
 * @author Eric Qian
 */
public class HelpAboutItem extends JMenuItem{
    public HelpAboutItem(MetroFrame frame){
        super();
        this.frame = frame;
        name = NameMap.getInstance().getName("About");
        this.setText(name);
        Icon icon = new ImageIcon("icon/about.gif");
        this.setIcon(icon);
        this.addActionListener(new AboutActionListener(frame));
    }
    
    private MetroFrame frame;
    private String name;
}
